package com.example.ass7.geometryprimitives;

/**
 * @author Meirav Ben Izhak
 */
public class Counter {

    private int count = 0;

    // add number to current count.
    /**
     * @param number
     *            number
     */
    public void increase(int number) {
        this.count += number;
    }

    // subtract number from current count.
    /**
     * @param number
     *            number
     */
    public void decrease(int number) {
        this.count -= number;
    }

    // get current count.
    /**
     * @return int
     */
    public int getValue() {
        return this.count;
    }
}